package com.lz.frame.domain.mapper;


import java.util.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lz.frame.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <pre>
 * @描述：
 * @作者：lizhao
 * @创建时间： 2024/8/19 下午3:07
 * </pre>
 **/
@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<String> getMenus(String id);

    @Select("select * from user where username = #{username}")
    User getUserByUsername(String username);

    @Select("select * from user where id = #{userId}")
    User getUserByUserId(String userId);

}
